﻿/* 7. Write a program that finds the greatest of given 5 variables. */

using System;

public class FindGreatest
{
    public static void Main()
    {
        double number;
        double greatest = 0d;

        for (int i = 1; i <= 5; i++)
        {
            Console.Write("number {0} = ", i);
            number = double.Parse(Console.ReadLine());
            if (i > 1)
            {
                if (number > greatest)
                    greatest = number;
            }
            else
                greatest = number;
        }

        Console.WriteLine("------------");
        Console.WriteLine("The greatest ot thease numbers is {0}.", greatest);
    }
}